package com.miplus.ccrm.workflow.model.dto.recycle;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.time.LocalDateTime;
import java.util.Date;

/**
 * 清空回收站DTO
 */
@Data
@ApiModel("清空回收站请求参数")
public class ClearRecycleDTO {

    /**
     * 清空方式（all-全部清空，expired-仅清空过期数据，before_date-清空指定日期前的数据）
     */
    private String clearType = "expired";

    @ApiModelProperty(value = "指定日期（当clearType为before_date时必填）")
    private Date beforeDate;

    @ApiModelProperty(value = "是否强制清空（跳过某些安全检查）", example = "false")
    private Boolean forceDelete = false;

    @ApiModelProperty(value = "清空确认码（用于重要操作的二次确认）")
    private String confirmCode;

    @ApiModelProperty(value = "清空原因")
    private String clearReason;
}